home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2473 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: newsfeed.direct.ca!usenet
  2. From: "Jatinder S. Toor" <jtoor@direct.ca>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: How to get Beep??
  5. Date: Wed, 17 Jan 1996 15:30:37 -0800
  6. Organization: Internet Direct
  7. Message-ID: <30FD869D.1960@direct.ca>
  8. References: <4djthp$o2o@hermes.louisville.edu>
  9. NNTP-Posting-Host: 204.174.248.110
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b5 (Win95; I; 16bit)
  14.  
  15. Billy Boone wrote:
  16. > I was wondering how I could get a Beep similar to Visual Basic's Beep
  17. > statement in Visual C++ 1.5.  I want a beep when I give the user error
  18. > messages.  Is it an API or is it a MFC function??
  19. > I know in C adding a \a gets you a beep but I want to utilize the
  20. > AfxMessageBox to display my error message but I also want to have a beep to
  21. > alert the user of the error.
  22. > Any help would be greatly appreciated.
  23. > Billy
  24.  
  25. MessageBeep(-1);
  26.  
  27. will perform the desired effect. I believe that there an API and a class 
  28. member function versions of this. Check the online help.
  29.  
  30. Regards
  31.  
  32. Jay Toor
  33. jtoor@direct.ca
  34.